a taste of one's own medicine

自己惹来的恶果,自己曾加给人家的苦头[常与动词give或treat连用][见medicine]